package com.adderis.soft.domain.dao;

import java.util.List;

import com.adderis.soft.domain.model.NomCommercial;

/**
 * DAO for domain model class NomCommercial.
 * 
 * @see com.adderis.soft.domain.model.NomCommercial
 * @author Reda
 */
public interface INomcommercialDao {

	/**
	 * Persist a Nomcommercial entity in the database
	 * 
	 * @param transientNomcommercial
	 */
	public void persist(NomCommercial transientNomcommercial);
 
	/**
	 * Remove a persisted Nomcommercial from the database
	 * 
	 * @param persistentNomcommercial
	 */
	public void remove(NomCommercial persistentNomcommercial);
 
	/**
	 * Remove a persisted Nomcommercial from the database
	 * 
	 * @param NomcommercialId
	 */
	public void remove(Integer NomcommercialId);
 
	/**
	 * Update a Nomcommercial in the database
	 * 
	 * @param detachedNomcommercial
	 * @return merged Nomcommercial
	 */
	public NomCommercial merge(NomCommercial detachedNomcommercial);
 
	/**
	 * Find a Nomcommercial by id
	 * 
	 * @param id
	 * @return the found Nomcommercial
	 */
	public NomCommercial findById(Integer id);
 
	/**
	 * Find a list of Nomcommercial
	 * 
	 * @return the found Nomcommercial
	 */
	public List<NomCommercial> findAll();
 
	/**
	 * Search Nomcommercials
	 * 
	 * @param searchString
	 * @return the found Nomcommercials
	 */
	public List<NomCommercial> search(String searchString);
	
	

}
